<?php
/**
 * 获取游记列表
 */
class LastScrollDataWidget extends Widget {
    public function render($data) {
        //获取最后注册的会员
		$sql="select uid,username from ".UHDQ."space order by uid desc limit 5";
        $data["newuser"] = M()->query($sql);
        
        //获取最后发表的游记
		$sql="select blogid,uid,username,subject from ".UHDQ."blog order by dateline desc limit 5";
        $data["newblog"] = M()->query($sql);
        
        $content = $this->renderFile("LastScrollData", $data);
        return $content;
    }
}